// store/user.js

const state = {
  userInfo: null
};

const mutations = {
  SET_USER_INFO(state, userInfo) {
    state.userInfo = userInfo;
  }
};

const actions = {
  setUser({ commit }, userInfo) {
    commit('SET_USER_INFO', userInfo);
  },
};
export default {
  state,
  mutations,
  actions
};
